<?php
defined( '_VALID_MOS' ) or die('<script>window.location.href="http://www.kinifurniture.com";</script>');
$dbh = new GenericDatabaseClass();
$functions = new auction_functions($dbh);

$qry="select * from link where tampil='1' limit 0,5";

$res=$dbh->query($qry);
//$row=mysql_fetch_object($res);

while($row=mysql_fetch_object($res))
{
	if ($row->alamat_link!='') {
		$news = '<a href="http://'.$row->alamat_link.'" target="_blank">'.$row->alamat_link.' </a> - '.$row->abbreviation.' - '.$row->nama_link.' <br>';
		//$news='<a target="'.$target.'" href="'.$row->alamat_link.'">'.$row->abbreviation.'</a>';
	} else {
		$news=$row->abbreviation;
	}
	$links.=$news;
}		
?>